<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>站点-首页</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <link rel="shortcut icon" th:href="@{/favicon.png}" type="image/x-icon">
  <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
  <link rel="stylesheet" type="text/css" th:href="@{/res/layui/css/layui-theme-dark.css}">
  <script type="text/javascript" th:src="@{/layui/layui.js}"></script>
  <style>
    /* 使大容器居中放置并添加外边距 */
    .center-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 20px;
      padding: 20px;
      background-color: rgba(255, 255, 255, .12);
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      flex-wrap: wrap;
      min-height: 500px;
      font-size: large;
    }
  </style>
</head>
<body>
<div class="center-container" id="main-container">
  <span></span>
</div>
<script type="text/javascript" th:inline="javascript">
  const data = [[${data}]]
</script>
<script type="text/javascript">
  layui.use(['jquery'], async function () {
    let $ = layui.jquery

    const m = document.getElementById('main-container');
    m.innerHTML = '<span>'+ data +'</span>'
  })
</script>
</body>
</html>
